package com.example.hfSystem.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.example.hfSystem.entity.pojo.AddressBook;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author zx
 * @version 1.0
 * @package_name: com.example.hfSystem.dao
 * @date 2024/4/10 10:12
 */
public interface AddressBookDao extends BaseMapper<AddressBook> {
    @Select("select ab.detail from yonghu as yh JOIN address_book as ab on yh.id = ab.yonghu_id and ab.is_delete=0;")
    List<String> selectByYongHuId(Long id);
}
